/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2022-04-19 14:28:29
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-04-27 09:53:42
 */

import request from "@/utils/request.js";


//- 团队列表

export const teamList = params => {
    return request({
        method: 'get',
        url: '/common/team/list',
        params
    })
}

// - 团队候选列表(新增时使用)
export const addList = params => {
    return request({
        method: 'get',
        url: '/common/team/addList',
        params
    })
}

// - 添加团队
export const insert = data => {
    return request({
        method: 'post',
        url: '/common/team/insert',
        data
    })
}
// - 编辑权限
export const updateTeam = data => {
    return request({
        method: 'post',
        url: '/common/team/update',
        data
    })
}
// - 移除
export const deleteTeam = data => {
    return request({
        method: 'post',
        url: '/common/team/delete',
        data
    })
}
// - 退出
export const withdrawTeam = params => {
    return request({
        method: 'get',
        url: '/common/team/withdraw',
        params
    })
}

// - 转移(选择的列表为已存在的团队列表)
export const transfer = data => {
    return request({
        method: 'post',
        url: '/common/team/transfer',
        data
    })
}


// 转移列表
export const transferList = params => {
    return request({
        method: 'get',
        url: '/common/team/transferList',
        params
    })
}

// - 是否有读写权限
export const rw = params => {
    return request({
        method: 'get',
        url: '/common/team/rw',
        params
    })
}

// 是否有删除权限
export const isDelete = data => {
    return request({
        method: 'post',
        url: '/common/team/isDelete',
        data
    })
}
